﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class 托盘表增加重量 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "BaseUnit",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "BatchNo",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "BinNo",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "Factory",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "FactoryName",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "Founder",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "OrderDetailNo",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "PicklistLineNo",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "QuantityOut",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "SerialNo",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "SerialNumberEnabled",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "StockDetailsId",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "StockLocation",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "StorageArea",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "StorageNo",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "StoreMark",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "StoreType",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "SupplierName",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "SupplierNo",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "WbsCode",
                table: "TShippingGoodsDetails");

            migrationBuilder.AddColumn<decimal>(
                name: "MaximumWeightOfTray",
                table: "TPallets",
                type: "decimal(18,2)",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "MaximumWeightOfTray",
                table: "TPallets");

            migrationBuilder.AddColumn<string>(
                name: "BaseUnit",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "BatchNo",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "BinNo",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Factory",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "FactoryName",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Founder",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "OrderDetailNo",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "PicklistLineNo",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "QuantityOut",
                table: "TShippingGoodsDetails",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m);

            migrationBuilder.AddColumn<string>(
                name: "SerialNo",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "SerialNumberEnabled",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "StockDetailsId",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "StockLocation",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "StorageArea",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "StorageNo",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "StoreMark",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "StoreType",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "SupplierName",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "SupplierNo",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "WbsCode",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);
        }
    }
}
